home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
386bug.arc
/
386BUG_C.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-06-05
|
500b
|
25 lines
#include <stdio.h>
void fail();
#define FAIL 1
main() {
long
lcount;
printf("WARNING:\n\007This program is designed to run only on a 386.\n");
printf("Press <ESC> to abort, any other key to continue ");
if (getch() == '\x1B')
exit(0);
printf("Testing for 80386 32-bit multiply bug\n");
for (lcount = 1; lcount < 63000; lcount++) {
if (multest() == FAIL) {
printf ("\007\007FAILS.\n");
exit(-1);
}
printf("Pass count =%ld.\r", lcount);
}
exit(0);
}